/**
 * 
 */
package Module_3;

/**
 * @author Schweingruber Roger
 * @date 04.12.2011
 * @version 
 *
 */
public class RechnerModel {
	
	private float operand1, operand2;
	private float resultat;
		
	/**
	 * Addition
	 */
	public void addition(){
		resultat = this.operand1 + this.operand2;
	}
	
	/**
	 * Subtraktion
	 */
	public void subtraktion(){
		resultat = this.operand1 - this.operand2;
	}
	
	/**
	 * Multiplikation
	 */
	public void multiplikation(){
		resultat = this.operand1 * this.operand2;
	}
	
	/**
	 * Division
	 */
	public void division() {
		resultat = this.operand1 / this.operand2;
	}


	public void setOperand1(float operand1) {
		this.operand1 = operand1;
	}


	public void setOperand2(float operand2) {
		this.operand2 = operand2;
	}

	public float getResultat() {
		return resultat;
	}
	
}
